
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.2.1 社区版编译部署 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../1.2.2 社区版镜像部署/" />
    
    
    <link rel="prev" href="../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../1.1 产品介绍/">
            
                <a href="../../1.1 产品介绍/">
            
                    
                    1.1 产品介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                <a href="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                    
                    1.1.1 商用社交版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                <a href="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                    
                    1.1.2 商用客服版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                <a href="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                    
                    1.1.3 社交版开发指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../">
            
                <a href="../">
            
                    
                    1.2 试用与部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="./">
            
                <a href="./">
            
                    
                    1.2.1 社区版编译部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../1.2.2 社区版镜像部署/">
            
                <a href="../1.2.2 社区版镜像部署/">
            
                    
                    1.2.2 社区版镜像部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../1.2.3 专业版镜像部署/">
            
                <a href="../1.2.3 专业版镜像部署/">
            
                    
                    1.2.3 专业版镜像部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../1.3 编译工程/">
            
                <a href="../../1.3 编译工程/">
            
                    
                    1.3 编译工程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                <a href="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                    
                    1.3.1 编译社区版后端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                    
                    1.3.2 编译Web客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                    
                    1.3.3 编译移动客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                <a href="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                    
                    1.3.4 编译微信小程序源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                <a href="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                    
                    1.3.5 编译E聊SDK源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../1.4 系统架构/">
            
                <a href="../../1.4 系统架构/">
            
                    
                    1.4 系统架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../1.5 基础知识/">
            
                <a href="../../1.5 基础知识/">
            
                    
                    1.5 基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../1.5 基础知识/1.5.1 软件特性/">
            
                <a href="../../1.5 基础知识/1.5.1 软件特性/">
            
                    
                    1.5.1 软件特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../1.5 基础知识/1.5.2 客户端核心SDK功能/">
            
                <a href="../../1.5 基础知识/1.5.2 客户端核心SDK功能/">
            
                    
                    1.5.2 客户端核心SDK功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../1.5 基础知识/1.5.3 用户/">
            
                <a href="../../1.5 基础知识/1.5.3 用户/">
            
                    
                    1.5.3 用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../1.5 基础知识/1.5.4 连接/">
            
                <a href="../../1.5 基础知识/1.5.4 连接/">
            
                    
                    1.5.4 连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../1.5 基础知识/1.5.5 会话/">
            
                <a href="../../1.5 基础知识/1.5.5 会话/">
            
                    
                    1.5.5 会话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../1.5 基础知识/1.5.6 消息/">
            
                <a href="../../1.5 基础知识/1.5.6 消息/">
            
                    
                    1.5.6 消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../1.5 基础知识/1.5.7 消息载体/">
            
                <a href="../../1.5 基础知识/1.5.7 消息载体/">
            
                    
                    1.5.7 消息载体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../../1.5 基础知识/1.5.8 文件上传功能/">
            
                <a href="../../1.5 基础知识/1.5.8 文件上传功能/">
            
                    
                    1.5.8 文件上传功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../../1.5 基础知识/1.5.9 离线消息/">
            
                <a href="../../1.5 基础知识/1.5.9 离线消息/">
            
                    
                    1.5.9 离线消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../../1.5 基础知识/1.5.10 群组/">
            
                <a href="../../1.5 基础知识/1.5.10 群组/">
            
                    
                    1.5.10 群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../../1.5 基础知识/1.5.11 自定义消息/">
            
                <a href="../../1.5 基础知识/1.5.11 自定义消息/">
            
                    
                    1.5.11 自定义消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../1.6 服务端知识/">
            
                <a href="../../1.6 服务端知识/">
            
                    
                    1.6 服务端知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                <a href="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                    
                    1.6.1 服务器端口说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                <a href="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                    
                    1.6.2 数据库配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                <a href="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                    
                    1.6.3 机器内存的选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../1.6 服务端知识/1.6.4 性能测试/">
            
                <a href="../../1.6 服务端知识/1.6.4 性能测试/">
            
                    
                    1.6.4 性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                <a href="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                    
                    1.6.5 服务器配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../../1.6 服务端知识/1.6.6 Server API/">
            
                <a href="../../1.6 服务端知识/1.6.6 Server API/">
            
                    
                    1.6.6 Server API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../1.7 源码导读/">
            
                <a href="../../1.7 源码导读/">
            
                    
                    1.7 源码导读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../1.7 源码导读/1.7.1 客户端核心SDK/">
            
                <a href="../../1.7 源码导读/1.7.1 客户端核心SDK/">
            
                    
                    1.7.1 客户端核心SDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../1.7 源码导读/1.7.2 社区版服务端/">
            
                <a href="../../1.7 源码导读/1.7.2 社区版服务端/">
            
                    
                    1.7.2 社区版服务端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../1.7 源码导读/1.7.3 使用Web版SDK/">
            
                <a href="../../1.7 源码导读/1.7.3 使用Web版SDK/">
            
                    
                    1.7.3 使用Web版SDK
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../1.10 code错误码/">
            
                <a href="../../1.10 code错误码/">
            
                    
                    1.10 code错误码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../1.11 技术支持/">
            
                <a href="../../1.11 技术支持/">
            
                    
                    1.11 技术支持
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../1.12 管理后台/">
            
                <a href="../../1.12 管理后台/">
            
                    
                    1.12 管理后台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../1.13 常见问题/">
            
                <a href="../../1.13 常见问题/">
            
                    
                    1.13 常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >1.2.1 社区版编译部署</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="121-&#x793E;&#x533A;&#x7248;&#x7F16;&#x8BD1;&#x90E8;&#x7F72;">1.2.1 &#x793E;&#x533A;&#x7248;&#x7F16;&#x8BD1;&#x90E8;&#x7F72;</h1>
<h3 id="1&#x8BF4;&#x660E;&#xFF1A;">1.&#x8BF4;&#x660E;&#xFF1A;</h3>
<p><strong>&#x90E8;&#x7F72;&#x673A;&#x5668;&#x73AF;&#x5883;&#x8981;&#x6C42;:</strong>
&#x7CFB;&#x7EDF;: linux, &#x5EFA;&#x8BAE;centos7.0+&#x6216;ubuntu20.0+</p>
<p>&#x786C;&#x76D8;: &#x7A7A;&#x4F59;&#x7A7A;&#x95F4;10G&#x4EE5;&#x4E0A;</p>
<p>&#x8F6F;&#x4EF6;: &#x5B89;&#x88C5;docker, &#x7248;&#x672C;19.03.13+</p>
<p>&#x7AEF;&#x53E3;: &#x90E8;&#x7F72;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x9700;&#x8981;&#x6620;&#x5C04;&#x5BBF;&#x4E3B;&#x673A;80,3306,8082,9092&#x7AEF;&#x53E3;, &#x82E5;&#x4E3B;&#x673A;&#x6709;&#x5F00;nginx,mysql&#x7B49;&#x670D;&#x52A1;, &#x8BF7;&#x5148;
&#x505C;&#x6B62;&#x76F8;&#x5173;&#x670D;&#x52A1;</p>
<h3 id="2&#x90E8;&#x7F72;&#x6B65;&#x9AA4;">2.&#x90E8;&#x7F72;&#x6B65;&#x9AA4;:</h3>
<h4 id="21-&#x7F16;&#x8BD1;">2.1 &#x7F16;&#x8BD1;</h4>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x89E3;&#x538B;&#x6587;&#x4EF6;</span>
tar -xvf &#x793E;&#x533A;&#x7248;&#x7F16;&#x8BD1;&#x90E8;&#x7F72;&#x5305;.tar.gz
<span class="hljs-comment"># &#x6253;&#x5F00;&#x6587;&#x4EF6;&#x5939;</span>
<span class="hljs-built_in">cd</span> server-community
<span class="hljs-comment"># &#x8F93;&#x5165;IP&#x5730;&#x5740;, &#x6784;&#x5EFA;&#x7F16;&#x8BD1;&#x955C;&#x50CF;&#x4E0E;&#x53D1;&#x5E03;&#x955C;&#x50CF;</span>
./main.sh build
</code></pre>
<h4 id="22-&#x90E8;&#x7F72;">2.2 &#x90E8;&#x7F72;</h4>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x90E8;&#x7F72;&#x53D1;&#x5E03;&#x955C;&#x50CF;</span>
./main.sh start
</code></pre>
<h4 id="23-&#x4F7F;&#x7528;">2.3 &#x4F7F;&#x7528;</h4>
<p>Web&#x7AEF;: &#x8BBF;&#x95EE; <a href="http://{&#x4E3B;&#x673A;IP}/web/" target="_blank">http://{&#x4E3B;&#x673A;IP}/web/</a></p>
<p>&#x79FB;&#x52A8;&#x7F51;&#x9875;&#x7AEF;: &#x8BBF;&#x95EE; <a href="http://{&#x4E3B;&#x673A;IP}/rn/" target="_blank">http://{&#x4E3B;&#x673A;IP}/rn/</a></p>
<p>&#x5B89;&#x5353;&#x7AEF;: &#x8BBF;&#x95EE; <a href="http://{&#x4E3B;&#x673A;IP}/downloads/app/" target="_blank">http://{&#x4E3B;&#x673A;IP}/downloads/app/</a></p>
<p>&#x9ED8;&#x8BA4;&#x7528;&#x6237;:</p>
<table>
<thead>
<tr>
<th>&#x7528;&#x6237;&#x540D;</th>
<th>&#x5BC6;&#x7801;</th>
<th>&#x5176;&#x5B83;</th>
</tr>
</thead>
<tbody>
<tr>
<td>admin</td>
<td>admin</td>
<td></td>
</tr>
<tr>
<td>chat</td>
<td>chat</td>
</tr>
</tbody>
</table>
<h3 id="3&#x9AD8;&#x7EA7;&#x4F7F;&#x7528;">3.&#x9AD8;&#x7EA7;&#x4F7F;&#x7528;:</h3>
<h4 id="31-&#x4E3B;&#x673A;ip&#x5730;&#x5740;&#x53D8;&#x66F4;">3.1 &#x4E3B;&#x673A;IP&#x5730;&#x5740;&#x53D8;&#x66F4;</h4>
<p>&#x4E3B;&#x673A;IP&#x5730;&#x5740;&#x66F4;&#x6362;&#x540E;&#x4F1A;&#x5BFC;&#x81F4;&#x524D;&#x7AEF;&#x9875;&#x9762;&#x65E0;&#x6CD5;&#x8BBF;&#x95EE;&#x540E;&#x7AEF;&#x670D;&#x52A1;, &#x56E0;&#x6B64;&#x8BF7;&#x5C06;&#x4E3B;&#x673A;IP&#x8BBE;&#x7F6E;&#x4E3A;&#x9759;&#x6001;IP&#x3002;&#x4E5F;&#x53EF;&#x66F4;&#x6539;main.sh&#x6587;&#x4EF6;, &#x4FEE;&#x6539;&#x4E3A;&#x65B0;&#x7684;IP&#x5730;&#x5740;, &#x65B9;&#x6CD5;&#x5982;&#x4E0B;:</p>
<pre><code class="lang-bash">vim main.sh
<span class="hljs-comment"># &#x66F4;&#x6539;&#x4E3B;&#x673A;IP</span>
OLD_HOST_IP=&#x65E7;&#x7684;IP&#x5730;&#x5740;
NEW_HOST_IP=&#x65B0;&#x7684;IP&#x5730;&#x5740;

<span class="hljs-comment"># &#x4FEE;&#x6539;&#x540E;&#x5220;&#x9664;&#x5BB9;&#x5668;</span>
docker rm <span class="hljs-_">-f</span> {&#x5BB9;&#x5668;ID}
<span class="hljs-comment"># &#x91CD;&#x65B0;&#x521B;&#x5EFA;&#x90E8;&#x7F72;&#x5BB9;&#x5668;, &#x4F1A;&#x66F4;&#x65B0;&#x524D;&#x7AEF;&#x9875;&#x9762;, &#x5BA2;&#x6237;&#x7AEF;&#x7684;IP&#x914D;&#x7F6E;</span>
./main start
<span class="hljs-comment"># &#x51FA;&#x73B0;&quot;ready to modify the host ip from:192.168.0.11 =&gt; 192.168.xx.xx&quot;&#x7684;&#x5B57;&#x6837;&#x5373;&#x4E3A;&#x6210;&#x529F;</span>
</code></pre>
<h4 id="32-&#x540E;&#x7AEF;api-swagger&#x5730;&#x5740;">3.2 &#x540E;&#x7AEF;API swagger&#x5730;&#x5740;</h4>
<p>&#x8BBF;&#x95EE; <a href="http://{&#x4E3B;&#x673A;IP}:8082/swagger-ui.html" target="_blank">http://{&#x4E3B;&#x673A;IP}:8082/swagger-ui.html</a></p>
<h4 id="33-&#x767B;&#x5F55;&#x540E;&#x7AEF;&#x6570;&#x636E;&#x5E93;">3.3 &#x767B;&#x5F55;&#x540E;&#x7AEF;&#x6570;&#x636E;&#x5E93;</h4>
<p>&#x6570;&#x636E;&#x5E93;&#x521D;&#x59CB;&#x7528;&#x6237;&#x540D;&#x5BC6;&#x7801;&#x5747;&#x4E3A;root</p>
<pre><code class="lang-bash">docker <span class="hljs-built_in">exec</span> -it {&#x5BB9;&#x5668;ID} /bin/bash
mysql -uroot -proot
</code></pre>
<p>&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x4FEE;&#x6539;&#x8FDC;&#x7A0B;&#x8BBF;&#x95EE;&#x7B49;.</p>
<h4 id="39-&#x6574;&#x5408;&#x5305;&#x5185;&#x7F16;&#x8BD1;&#x7684;&#x6E90;&#x7801;&#x5305;&#x62EC;">3.9 &#x6574;&#x5408;&#x5305;&#x5185;&#x7F16;&#x8BD1;&#x7684;&#x6E90;&#x7801;&#x5305;&#x62EC;</h4>
<table>
<thead>
<tr>
<th>&#x6E90;&#x7801;</th>
<th>&#x6E90;&#x7801;&#x5730;&#x5740;</th>
<th>&#x5206;&#x652F;</th>
</tr>
</thead>
<tbody>
<tr>
<td>js sdk core</td>
<td><a href="https://gitee.com/dzqmeiji/echatim-client-ts-core.git" target="_blank">&#x6E90;&#x7801;</a></td>
<td>feature_v1.10</td>
</tr>
<tr>
<td>&#x79FB;&#x52A8;&#x7AEF;ReactNative(Web,Android)</td>
<td><a href="https://gitee.com/dzqmeiji/echatim-client-rn.git" target="_blank">&#x6E90;&#x7801;</a></td>
<td>feature_v1.10</td>
</tr>
<tr>
<td>&#x7F51;&#x9875;&#x7AEF;Web</td>
<td><a href="https://gitee.com/dzqmeiji/echatim-client-web.git" target="_blank">&#x6E90;&#x7801;</a></td>
<td>master</td>
</tr>
<tr>
<td>&#x540E;&#x7AEF;&#x4E2D;&#x95F4;&#x4EF6;</td>
<td><a href="https://gitee.com/dzqmeiji/echatim-server-broker-community.git" target="_blank">&#x6E90;&#x7801;</a></td>
<td>master</td>
</tr>
<tr>
<td>&#x540E;&#x7AEF;&#x4EE3;&#x7801;</td>
<td><a href="https://gitee.com/dzqmeiji/echatim-server-community.git" target="_blank">&#x6E90;&#x7801;</a></td>
<td>feature_v2.00</td>
</tr>
</tbody>
</table>
<h3 id="4faq">4.FAQ</h3>
<h4 id="41-&#x5982;&#x4F55;&#x5B89;&#x88C5;docker&#x5BB9;&#x5668;">4.1 &#x5982;&#x4F55;&#x5B89;&#x88C5;docker&#x5BB9;&#x5668;</h4>
<pre><code class="lang-bash"><span class="hljs-comment"># centos7.0&#x7CFB;&#x7EDF;&#x4E0B;</span>
curl <span class="hljs-_">-s</span>SL https://get.daocloud.io/docker | sh
service docker start
</code></pre>
<h4 id="42-&#x51FA;&#x73B0;&#x7F16;&#x8BD1;&#x5931;&#x8D25;&#x7684;&#x9519;&#x8BEF;">4.2 &#x51FA;&#x73B0;&quot;&#x7F16;&#x8BD1;&#x5931;&#x8D25;&quot;&#x7684;&#x9519;&#x8BEF;</h4>
<p>&#x53EF;&#x80FD;&#x662F;&#x7531;&#x4E8E;&#x7F16;&#x8BD1;&#x4E2D;&#x9014;&#x7F51;&#x7EDC;&#x8D85;&#x65F6;&#x5F15;&#x8D77;, &#x518D;&#x6B21;&#x6267;&#x884C;</p>
<pre><code class="lang-bash">./main.sh build
</code></pre>
<h4 id="43-&#x5982;&#x4F55;&#x67E5;&#x770B;ip&#x5730;&#x5740;">4.3 &#x5982;&#x4F55;&#x67E5;&#x770B;IP&#x5730;&#x5740;</h4>
<p>&#x6267;&#x884C;ifconfig, &#x4E00;&#x822C;ethxx, ensxx &#x5B57;&#x6837;&#x7684;&#x5C31;&#x662F;&#x4E3B;&#x673A;&#x7684;&#x7F51;&#x5361;, &#x8BB0;&#x5F55;<strong>inet</strong>&#x5B57;&#x6BB5;.</p>
<pre><code class="lang-bash">ifconfig
...
ens33: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 192.168.146.128  netmask 255.255.255.0  broadcast 192.168.146.255
        inet6 fe80::4332:54ef:3e2e:b305  prefixlen 64  scopeid 0x20&lt;link&gt;
        ether 00:0c:29:14:f8:ae  txqueuelen 1000  (Ethernet)
        RX packets 117558  bytes 151549434 (144.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 40310  bytes 2435128 (2.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

...
</code></pre>
<h3 id="5&#x4E0B;&#x8F7D;">5.&#x4E0B;&#x8F7D;</h3>
<p><a href="https://www.syjshare.com/res/UVGG63QL" target="_blank">&#x4E0B;&#x8F7D;&#x793E;&#x533A;&#x7248;&#x7F16;&#x8BD1;&#x90E8;&#x7F72;&#x5305;</a> &#x8C22;&#x8C22;&#x652F;&#x6301;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../" class="navigation navigation-prev " aria-label="Previous page: 1.2 试用与部署">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../1.2.2 社区版镜像部署/" class="navigation navigation-next " aria-label="Next page: 1.2.2 社区版镜像部署">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.2.1 社区版编译部署","level":"1.3.1","depth":2,"next":{"title":"1.2.2 社区版镜像部署","level":"1.3.2","depth":2,"path":"1.2 试用与部署/1.2.2 社区版镜像部署/README.md","ref":"1.2 试用与部署/1.2.2 社区版镜像部署/README.md","articles":[]},"previous":{"title":"1.2 试用与部署","level":"1.3","depth":1,"path":"1.2 试用与部署/README.md","ref":"1.2 试用与部署/README.md","articles":[{"title":"1.2.1 社区版编译部署","level":"1.3.1","depth":2,"path":"1.2 试用与部署/1.2.1 社区版编译部署/README.md","ref":"1.2 试用与部署/1.2.1 社区版编译部署/README.md","articles":[]},{"title":"1.2.2 社区版镜像部署","level":"1.3.2","depth":2,"path":"1.2 试用与部署/1.2.2 社区版镜像部署/README.md","ref":"1.2 试用与部署/1.2.2 社区版镜像部署/README.md","articles":[]},{"title":"1.2.3 专业版镜像部署","level":"1.3.3","depth":2,"path":"1.2 试用与部署/1.2.3 专业版镜像部署/README.md","ref":"1.2 试用与部署/1.2.3 专业版镜像部署/README.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"1.2 试用与部署/1.2.1 社区版编译部署/README.md","mtime":"2021-08-04T03:48:48.273Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-11-19T07:54:02.646Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

